﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.Core.Common;
using System.Data.SQLite;
using System.Data.SQLite.EF6;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Xejen.Database.Ef.Sqlite
{
    /// <summary>
    /// 表示Sqlite数据库配置，用于配置相关的服务 
    /// </summary>
    /// <creator>marc</creator>
    internal class SqliteDbConfiguration : DbConfiguration
    {
        /// <inheritdoc cref="SqliteDbConfiguration"/>
        public SqliteDbConfiguration()
        {
            SetProviderFactory("System.Data.SQLite", SQLiteFactory.Instance);
            SetProviderServices("System.Data.SQLite", (DbProviderServices)SQLiteProviderFactory.Instance.GetService(typeof(DbProviderServices)));
        }
    }
}
